// useManageInfo.ts
import { useSelector } from 'react-redux';
import { StateType } from '../store';
import { userType } from '../store/user';

export function useUserInfo(): userType {
    const userState = useSelector<StateType>(state => state.user) as userType;
    return userState;
}